package cn.edu.hncj.Controller;

import cn.edu.hncj.Service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserController {
  public static void main(String[] args) {
    ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
    UserService userService = (UserService) app.getBean("UserService");
    // UserService userService = app.getBean(UserService.class);
    userService.save();
  }

}
